package com.group3.hospital.service.impl;

import com.group3.hospital.bean.Admin;
import com.group3.hospital.bean.Doctor;
import com.group3.hospital.mapper.PasswordMapper;
import com.group3.hospital.service.PasswordService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 尚硅谷
 * @create 2022/1/4
 */
@Service
public class PasswordServiceImpl implements PasswordService {
    @Autowired
    private PasswordMapper passwordMapper;


    @Override
    public String getPassword(long adminName) throws Exception {
        return passwordMapper.getPassword(adminName);
    }

    @Override
    public void update(Admin admin) throws Exception {
        passwordMapper.update(admin);
    }

    @Override
    public List<Long> getTel() {
        return passwordMapper.getTel();
    }

    @Override
    public List<Doctor> fourDoctor() {
        return passwordMapper.fourDoctor();
    }


}
